Name:		gdb
Version:	11.2
Release:	1%{?dist}
Summary:	GNU debugger

License:	GPLv3+
URL:		https://sourceware.org/gdb/
Source0: https://ftp.gnu.org/gnu/gdb/gdb-11.2.tar.xz

BuildRequires:	gcc-c++ gmp-devel xz-devel ncurses-devel xxhash texinfo

%description
GNU debugger

%prep
%setup -q

%build
%configure \
  --with-lzma \
  --with-xxhash=yes \
  --with-libxxhash-type=static \
  --disable-source-highlight \
  --enable-tui \
  --with-python=no --with-guile=no
make %{?_smp_mflags}


%install
make -C gdb/data-directory DESTDIR="%{buildroot}" install
make -C gdb DESTDIR="%{buildroot}" install
make -C gdbserver DESTDIR="%{buildroot}" install
rm -f %{buildroot}/usr/share/info/dir

%files
/usr/bin/*
/usr/lib64/libinproctrace.so
/usr/share/gdb
/usr/share/info/*
/usr/share/man/*/*
/usr/include/gdb/jit-reader.h

%changelog

